package server

import (
	"log"
	"net/http"

	"gitee.com/Yu-eng/Myproject/my-go-blog/router"
)

var APP = &Server{}

type Server struct {
}

func (*Server) Start(ip, port string) {
	//web程序 http 协议   ip  port
	server := http.Server{
		Addr: "127.0.0.1:8080",
	}

	//调用路由模块
	router.Router()

	if err := server.ListenAndServe(); err != nil {
		log.Println(err)
	}
}
